package com.fastmobile.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table (name = "CONTACTSLIST")
public class ContactsList {
	
	@Id
	@Column (name = "CONTACTID")
	private String contactId;
	
	@Column (name = "USERNAME")
	private String userName;
	
	@Column (name = "PASSWORD")
	private String passWord;
	
//	@Column (name = "DEPTID")
//	private String deptId;
	
	@OneToMany
	private List<Departments> depts;
	
	@Column (name = "ACCESSRIGHT")
	private int accessRight;

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

//	public String getDeptId() {
//		return deptId;s
//	}
//
//	public void setDeptId(String deptId) {
//		this.deptId = deptId;
//	}

	public int getAccessRight() {
		return accessRight;
	}

	public List<Departments> getDepts() {
		return depts;
	}

	public void setDepts(List<Departments> depts) {
		this.depts = depts;
	}

	public void setAccessRight(int accessRight) {
		this.accessRight = accessRight;
	}

	public String getContactId() {
		return contactId;
	}

	public void setContactId(String contactId) {
		this.contactId = contactId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}
